﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Modele
{
    /**
* @author Thomas Boulay 4Info INSA Rennes 
* @date mars 2010
* @brief objet Forme.Trait
 * 
*/
    public class Trait : Forme
    {
        public Trait(int x1, int y1, int x2, int y2)
            : base()
        {
            System.Drawing.Point[] ens_points = new System.Drawing.Point[2];  //définition de l'objet graphique
            ens_points[0] = new System.Drawing.Point(x1, y1);
            ens_points[1] = new System.Drawing.Point(x2, y2);
            this.CreateStroke(ens_points);

        }

        public Trait(System.Drawing.Point p1, System.Drawing.Point p2)
            : base()
        {
            System.Drawing.Point[] ens_points = new System.Drawing.Point[2];  //définition de l'objet graphique
            ens_points[0] =p1;
            ens_points[1] =p2;
            this.CreateStroke(ens_points);

        }
    }
}